Skip to content

Add a configuration to automatically label pull requests#215

Merged
mcdonnnj merged 2 commits into
developfrom
improvement/add_pr_auto_labelling
Sep 17, 2025
Merged

Add a configuration to automatically label pull requests#215
mcdonnnj merged 2 commits into
developfrom
improvement/add_pr_auto_labelling

Conversation

@mcdonnnj

@mcdonnnj mcdonnnj commented Aug 28, 2025

Copy link
Copy Markdown
Member

🗣 Description

This pull request adds a configuration leveraging GitHub Actions to automatically label pull requests based on the contents of the pull request. This includes a new GitHub Actions workflow and a configuration file for the [actions/labeler] action.

💭 Motivation and context

This automates some of the tedium of labeling pull requests to, for now, only requiring manual intervention for less strictly defined labels like bug, improvement, security, etc. instead of for all changes in a pull request. This will help ensure that what labels we can are correctly applied if applicable.

🧪 Testing

Automated tests pass. I did some testing in my personal GitHub Actions testing repository and a prototype version of this was added in cisagov/cyhy_amis#883 with success on subsequent pull requests in that repository.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

This includes updating the dependabot configuration, adding a new
`label-prs.yml` GitHub Actions workflow, and adding a suitable
configuration file for the actions/labeler action used by the
aforementioned workflow.
@mcdonnnj
mcdonnnj requested a review from a team August 28, 2025 18:14
@mcdonnnj mcdonnnj self-assigned this Aug 28, 2025
@mcdonnnj mcdonnnj added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Aug 28, 2025
@mcdonnnj mcdonnnj added the github-actions Pull requests that update GitHub Actions code label Aug 28, 2025

@dav3r dav3r left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, label it! 🏷️

@github-project-automation github-project-automation Bot moved this from In progress to Reviewer approved in Skeleton Maintenance Aug 28, 2025
@mcdonnnj mcdonnnj added the kraken 🐙 This pull request is ready to merge during the next Lineage Kraken release label Aug 28, 2025
Bumps [actions/labeler](https://github.com/actions/labeler) from 5 to 6.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](actions/labeler@v5...v6)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@mcdonnnj
mcdonnnj added this pull request to the merge queue Sep 17, 2025
Merged via the queue into develop with commit deb2480 Sep 17, 2025
13 checks passed
@mcdonnnj
mcdonnnj deleted the improvement/add_pr_auto_labelling branch September 17, 2025 14:45
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Skeleton Maintenance Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github-actions Pull requests that update GitHub Actions code improvement This issue or pull request will add or improve functionality, maintainability, or ease of use kraken 🐙 This pull request is ready to merge during the next Lineage Kraken release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants